import { handlerGetUrlParams } from '@/utils/dealUrlParams.js'
import request from '@/utils/request'

export function getOprationStatistics(param) {
  const url = handlerGetUrlParams('/monitor/operlog/statistics/list', param)
  return request({
    url,
    method: 'GET'
  })
}

export function exportOprationStatistics(param) {
  const url = handlerGetUrlParams('/monitor/operlog/export1', param)
  return request({
    url,
    method: 'GET'
  })
}

export function getMonthOprationStatistics(param) {
  const url = handlerGetUrlParams('/monitor/operlog/statistics/list1', param)
  return request({
    url,
    method: 'GET'
  })
}

export function addByPatent() {
  return request({
    url:'/bus/apply/addByPatent',
    method: 'GET'
  })
}

export function getDateBase(param) {
  const url = handlerGetUrlParams('/monitor/operlog/statistics/patent', param)
  return request({
    url,
    method: 'GET'
  })
}

export function getMonthDateBase(param) {
  const url = handlerGetUrlParams('/monitor/operlog/statistics/patentByDate', param)
  return request({
    url,
    method: 'GET'
  })
}

export function exportDateBase(param) {
  const url = handlerGetUrlParams('/monitor/operlog/exportPatent', param)
  return request({
    url,
    method: 'GET'
  })
}

export function getNumberUser() {
  return request({
    url:'/monitor/operlog/statistics/numberOfUsers',
    method: 'GET'
  })
}
